Skip to content

Stop attempting to delete CHAT_INPUT_COMMAND (Type 20) messages + Adjust delete delay after ratelimit to compensate ontop of current delay#527

Open
MDL-cmd wants to merge 1 commit intovictornpb:masterfrom
MDL-cmd:master
Open

Stop attempting to delete CHAT_INPUT_COMMAND (Type 20) messages + Adjust delete delay after ratelimit to compensate ontop of current delay#527
MDL-cmd wants to merge 1 commit intovictornpb:masterfrom
MDL-cmd:master

Conversation

@MDL-cmd
Copy link

@MDL-cmd MDL-cmd commented Jul 15, 2023

Undiscord attempts to delete Non-Ethereal Slash Commands (Type 20) due to blanket checking for System Messages with (msg.type >= 6 && msg.type <= 21).

This also adjusts so the ratelimit duration is added on top of the current delete delay, which will in worst case scenarios bump the delay to 1700 (but will avoid almost every ratelimit thereafter, tested with a 4000+ job archive deletion).

…ust delete delay after ratelimit to compensate ontop of current delay
@Bikatr7
Copy link

Bikatr7 commented Aug 17, 2023

Thanks so much, this works like a charm.

@victornpb victornpb added the PR looks good Looks like it's good for merging (maybe be in the next release) label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR looks good Looks like it's good for merging (maybe be in the next release)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants